package com.wlyuan.open.infrastructure.exception;

import com.wlyuan.utils.ResultError;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author yuanzheng
 */

@RequiredArgsConstructor
@Getter
public enum OpenPlatformError implements ResultError {
    //同步数据错误
    SOURCE_VALUE_ERROR(60001, "同步数据错误"),
    //不支持的数据
    SOURCE_UNSUPPORTED(60002, "不支持的数据"),
    //批量插入失败
    BATCH_SAVE_ERROR(60003, "批量插入失败"),
    ;

    private final int code;
    private final String message;
}
